<template>
  <div>Child: {{ count }}</div>
  <div>Num: {{ num }}</div>
</template>
<script>
import { inject } from 'vue'
export default {
  setup() {
    // !#2 使用数据
    const count = inject('count')
    const num = inject('num')
    return {
      count,
      num,
    }
  },
}
</script>
